//
//  JGDeal.m
//  JGMeiTuanHD
//
//  Created by JJetGu on 15/9/19.
//  Copyright (c) 2015年 Free. All rights reserved.
//

#import "JGDeal.h"
#import "MJExtension.h"
#import "JGBusiness.h"

@implementation JGDeal

-(NSDictionary *)replacedKeyFromPropertyName
{
    return @{@"desc" : @"description"};
}

- (NSDictionary *)objectClassInArray
{
    return @{@"businesses" : [JGBusiness class]};
}

// 只要他们id相同就认为是两个一个的对象
-(BOOL)isEqual:(JGDeal *)other
{
    return [self.deal_id isEqual:other.deal_id];
}

MJCodingImplementation

@end
